

<!-- 右边悬浮导航 -->
<div id="indexNavR">
    <ul>
        <li>
            <a href="" class="nav-r-1"></a>
        </li>
        <li>
            <a href="" class="nav-r-2"></a>
        </li>
        <li>
            <a href="" class="nav-r-3"></a>
        </li>
        <li>
            <a href="" class="nav-r-4"></a>
        </li>
        <li>
            <a href="" class="nav-r-5"></a>
        </li>
    </ul>
</div>

<!--以下为产品页面内容模块-->
<div class="speOffer-topFix">


          <?php 

          $this->widget('zii.widgets.CMenu',array(
                  'items'=>$menus,
                  'encodeLabel' => FALSE,
                  'lastItemCssClass'=>'qdLI',
                  'htmlOptions' => array('class' => 'clearfix', 'id' => 'menus'),
                  'activeCssClass' => 'speOfferNavActive',
          ));
        
           ?>

           <script type="text/javascript">
            $(function(){
                $("#menus").append('<div class="speOffer-topFixBg"></div>');
            })
           </script>



</div>
<div class="production-container">
    <div class="production-nav">

        <?php

            if($cid){
                $arr = CategoryModel::getMianbao($cid);
                $this->breadcrumbs = $arr;
            }else{
                $str = ModuleModel::getOne($mid,'Title');
                $this->breadcrumbs = array(
                    $str => array('goods', 'mid' => $mid),
                );                
            }


          if(!empty($this->breadcrumbs)){
            $this->widget('zii.widgets.CBreadcrumbs', array( 
                'homeLink'=>'<a href="/">首页</a>', //根的是什么
                'links'=>$this->breadcrumbs,   
                'separator'=>'&gt;',  //分隔符
            ));      
          }
        ?>


    </div>

    <?php  if(!empty($tag)){  ?>
    <div class="produForForm">
        <div class="produCheck">
            <button class="produChoose">
                <em>+</em>多选</button>
            <button class="produCForMore">更多
            <em></em></button>
        </div>
        <form action="" class="productionNavForm">
            <div class="produNavbox">
                <div class="produBrand">
                    <div class="produ_brand clearfix">
                        <div class="produKey">选购热点</div>
                        <!--<div class="produForSearch"></div>-->
                        <div class="produValue">
                            <div class="produVal-box">
                                <ul class="clearfix">
                                    <?php foreach($tag as $val){  ?>
                                        <?php $title =  TagModel::getOne($val,'Title') ?>
                                        <?php  if(!empty($title)){ ?>
                                            <li><a href="<?php echo $this->createUrl('goods', array('cid' => $cid, 'mid' => $mid, 'tid' => $val)) ?>"><?php echo $title; ?></a></li>
                                        <?php }  ?>
                                    <?php }  ?>
                                </ul>
                            </div>
                            <div class="produBtn">
                                <span  class="produ-submit">确定</span>
                                <span  class="produ-reset">取消</span>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <?php  } ?>


    <?php  if(!empty($cat)){  ?>
    <div class="produForForm">
        <div class="produCheck">
            <button class="produCForMore">更多
            <em></em></button>
        </div>
        <form action="" class="productionNavForm">
            <div class="produNavbox">
                <div class="produBrand">
                    <div class="produ_brand clearfix">
                        <div class="produKey">分类</div>
                        <div class="produValue">
                            <div class="produVal-box">
                                <ul class="clearfix">
                                    <?php foreach($cat as $val){  ?>
                                        <li><a href="<?php echo $this->createUrl('goods', array('mid' => $mid, 'cid' => $val['CatID'])) ?>"><?php echo $val['Title']; ?></a></li>
                                    <?php }  ?>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <?php  } ?>




    <!--图标模块-->
    <div class="produIcon clearfix">
        <h3>妈咪街服务承诺</h3>
        <ul class="clearfix">
            <li class="produIcon1">
                <em></em>
                全场包邮
            </li>
            <li class="produIcon2">
                <em></em>
                无忧退换货
            </li>
            <li class="produIcon3">
                <em></em>
                商品验货质检
            </li>
        </ul>
    </div>
    <!--综合人气新品导航栏目-->
    <div class="produSelectNav clearfix">
        <ul class="produSelectNavL clearfix">
<!--             <li>
               <a href="<?php  //echo $this->createUrl('goods', array('cid' => $cid, 'mid' => $mid, 'tid' => $tid, 'order' => '')) ?>"><span>综合</span><em></em></a>                
            </li> -->
            <li class="order_4" >
               <a href="<?php  echo $this->createUrl('goods', array('cid' => $cid, 'mid' => $mid, 'tid' => $tid, 'order' => 4)) ?>"><span>人气</span><em></em></a>                
            </li>
            <li class="order_9" >
               <a href="<?php  echo $this->createUrl('goods', array('cid' => $cid, 'mid' => $mid, 'tid' => $tid, 'order' => 9)) ?>"><span>新品</span><em></em></a>                
            </li>
            <li class="order_1" >
               <a href="<?php  echo $this->createUrl('goods', array('cid' => $cid, 'mid' => $mid, 'tid' => $tid, 'order' => 1)) ?>"><span>销量</span><em></em></a>                
            </li>
            <li class="order_2" >
               <a href="<?php  echo $this->createUrl('goods', array('cid' => $cid, 'mid' => $mid, 'tid' => $tid, 'order' => 2)) ?>"><span>价格</span><em></em></a>                
            </li>

        </ul>
        <div class="speOfferF-nr-arrow production-arrow clearfix">
                        <a href="<?php echo $data['page']->createPageUrl($this,$page-2) ?>" class="speOfferF-arrowL">
                            <em></em>
                        </a>
                        <a href="<?php echo $data['page']->createPageUrl($this,$page) ?>" class="speOfferF-arrowR">
                            <em></em>
                        </a>
        </div>
        <span style="float:right;margin-right: 8px;color: #806f66;font-size: 14px;margin-top: 4px;"><?php echo $page  ?>/<?php echo $data['page']->getPageCount() ?></span>
        <script type="text/javascript">
            $(function(){
                var order = '<?php echo $order; ?>';
                $(".order_"+order).addClass('speOffer-active');
            })
        </script>
        <ul class="produSelectNavR clearfix">
            
        </ul>
    </div>
    <div class="produInfo clearfix">
        <?php foreach($data['data'] as $GoodsID => $val){ ?>
        <div class="produInfoBox">
            <dl class="produInfoBox-con">
                <dt><a target="_blank" href="<?php echo $this->createUrl('/front/goods/detail', array('gid' => $val['GoodsID']))  ?>" title=""><img src="<?php echo $val['Image']  ?>" alt="<?php echo $val['GoodsName']  ?>"></a></dt>
                <dd>
                    <div>
                        <span>￥</span>
                        <strong><?php echo $val['PromoPrice']  ?></strong>
                        <em>￥<?php echo $val['Pprice']  ?></em>
                        <b><?php echo $val['Sales']  ?>人已买</b>
                    </div>
                    <p>
                        <a href=""><?php echo $val['GoodsName']  ?></a>
<!--                             <?php if($val['StartTime'] >= TIME_TIME){ ?>
                                <span>还有<?php echo Tool::getDataTime($val['StartTime'] - TIME_TIME)  ?>秒开始</span>
                            <?php  }else{ ?>
                                <span>剩余<?php echo Tool::getDataTime($val['EndTime']-TIME_TIME);  ?></span>
                            <?php } ?>       -->                
                    </p>
                    <div class="floor1-icon clearfix">
                        <?php if(!empty($val['IsFreeShipping'])){echo '<div>包邮</div>';}  ?>
                        <!-- <div>包邮</div> -->
                        <div class="index-floorone-changeP">拍下改价</div>
                        <?php if($val['ItemType'] == 1){ ?>
                            <img src="<?php echo yii::app()->theme->baseUrl;  ?>/assets/images/mao.png" alt="">
                        <?php  }else{ ?>
                            <img src="<?php echo yii::app()->theme->baseUrl;  ?>/assets/images/taologo.png" alt="">
                        <?php } ?>                                               
                    </div>
                </dd>
            </dl>
        </div>
        <?php } ?>
    </div>

        <?php
        if(!empty($data['page'])){
            $this->widget('CLinkPager', array(
                'header' => "",
                'firstPageLabel' => '首页',
                'lastPageLabel' => '末页',
                'prevPageLabel' => '上一页',
                'nextPageLabel' => '下一页',
                'pages' => $data['page'],
                'footer' => "<span>共<em>{$data['page']->pageCount}</em>页</span>",
                'maxButtonCount' => 8
                    )
            );
        }
        ?>


</div>



<script src="<?php echo yii::app()->theme->baseUrl;  ?>/assets/js/production.js"></script>